require "migration_helpers"
class CreateContributors < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :contributors do |t|
      t.column :name, :string
      t.column :contribute_type_id, :integer
      t.column :meta_id, :integer
    end
    foreign_key(:contributors, :contribute_type_id, :contribute_types)
    foreign_key(:contributors, :meta_id, :metas)
  end

  def self.down
    drop_table :contributors
  end
end
